﻿using PlatformNetCore.Entity;

namespace PlatformNetCore.IService
{
    public interface IOAuthService
    {
        /// <summary>
        /// 获取 AccessToken
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        OAuthResponse GetAccessToken(string url, OAuthRequest request);
        /// <summary>
        /// 完整路径获取token
        /// </summary>
        /// <param name="url"></param>
        /// <param name="request"></param>
        /// <returns></returns>
        OAuthResponse GetAccessTokenFullUrl(string url, OAuthRequest request);
        /// <summary>
        /// RefreshToken
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        OAuthResponse RefreshToken(string url, OAuthRefreshRequest request);
    }
}
